package com.team1.system.libraryborrow.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.team1.common.annotation.Excel;
import com.team1.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 借书信息管理对象 library_borrow
 * 
 * @author hyy
 * @date 2023-04-10
 */
public class LibraryBorrow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借书信息id */
    private String borrowId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 借书管理员id */
    @Excel(name = "借书管理员id")
    private Long borrowAdminid;

    /** 借书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借书时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowTime;

    /** 还书管理员id */
    @Excel(name = "还书管理员id")
    private Long returnAdminid;

    /** 还书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "还书时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 是否还书 */
    @Excel(name = "是否还书")
    private String returnIs;

    /** 上链状态 */
    @Excel(name = "上链状态")
    private String borrowTobc;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String tag1;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String tag2;

    public void setBorrowId(String borrowId) 
    {
        this.borrowId = borrowId;
    }

    public String getBorrowId() 
    {
        return borrowId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBorrowAdminid(Long borrowAdminid) 
    {
        this.borrowAdminid = borrowAdminid;
    }

    public Long getBorrowAdminid() 
    {
        return borrowAdminid;
    }
    public void setBorrowTime(Date borrowTime) 
    {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() 
    {
        return borrowTime;
    }
    public void setReturnAdminid(Long returnAdminid) 
    {
        this.returnAdminid = returnAdminid;
    }

    public Long getReturnAdminid() 
    {
        return returnAdminid;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setReturnIs(String returnIs) 
    {
        this.returnIs = returnIs;
    }

    public String getReturnIs() 
    {
        return returnIs;
    }
    public void setBorrowTobc(String borrowTobc) 
    {
        this.borrowTobc = borrowTobc;
    }

    public String getBorrowTobc() 
    {
        return borrowTobc;
    }
    public void setTag1(String tag1) 
    {
        this.tag1 = tag1;
    }

    public String getTag1() 
    {
        return tag1;
    }
    public void setTag2(String tag2) 
    {
        this.tag2 = tag2;
    }

    public String getTag2() 
    {
        return tag2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("borrowId", getBorrowId())
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("borrowAdminid", getBorrowAdminid())
            .append("borrowTime", getBorrowTime())
            .append("returnAdminid", getReturnAdminid())
            .append("returnTime", getReturnTime())
            .append("returnIs", getReturnIs())
            .append("borrowTobc", getBorrowTobc())
            .append("tag1", getTag1())
            .append("tag2", getTag2())
            .toString();
    }
}
